/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.gra.service;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.gra.entity.Score;
import com.thinkgem.jeesite.modules.gra.dao.ScoreDao;

/**
 * 分数管理Service
 * @author wuzengli
 * @version 2017-05-03
 */
@Service
@Transactional(readOnly = true)
public class ScoreService extends CrudService<ScoreDao, Score> {

	public Score get(String id) {
		return super.get(id);
	}
	
	public List<Score> findList(Score score) {
		return super.findList(score);
	}
	
	public Page<Score> findPage(Page<Score> page, Score score) {
		return super.findPage(page, score);
	}
	
	@Transactional(readOnly = false)
	public void save(Score score) {
		super.save(score);
	}
	
	@Transactional(readOnly = false)
	public void delete(Score score) {
		super.delete(score);
	}
	
	/**
	 * 分数情况情况统计
	 * @return
	 */
	public List<Map<String,Object>> scoreStatistic(){
		return dao.scoreStatistic();
	}
	
}